#region Copyright
// Copyright (c) 2010, Kazi Manzur Rashid <kazimanzurrashid@gmail.com>.
// This source is subject to the Microsoft Public License. 
// See http://www.microsoft.com/opensource/licenses.mspx#Ms-PL. 
// All other rights reserved.
#endregion

namespace LiveWriter.Plugins.Snippet
{
    using WindowsLive.Writer.Api;

    internal static class PropertiesExtensions
    {
        public static string Style(this IProperties instance)
        {
            return instance.GetString("style", null);
        }

        public static void Style(this IProperties instance, string value)
        {
            instance.SetString("style", value);
        }

        public static bool ShowLineNumber(this IProperties instance)
        {
            return instance.GetBoolean("line-number", true);
        }

        public static void ShowLineNumber(this IProperties instance, bool value)
        {
            instance.SetBoolean("line-number", value);
        }

        public static bool Transparent(this IProperties instance)
        {
            return instance.GetBoolean("transparent", false);
        }

        public static void Transparent(this IProperties instance, bool value)
        {
            instance.SetBoolean("transparent", value);
        }
    }
}